package com.server.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.server.model.all.enums.SystemEnum;
import com.server.model.all.system.bo.AddBlackWhiteListBo;
import com.server.model.all.system.bo.RemoveBlackWhiteListBo;
import com.server.model.all.system.entity.BlackWhiteListEntity;

import java.util.List;

public interface BlackWhiteListService extends IService<BlackWhiteListEntity> {

    /**
     * 新增名单
     * @author LXC
     * @date 2023/2/1 20:24
     */
    boolean addBlackWhiteList(List<AddBlackWhiteListBo> addBlackWhiteListBoList);


    /**
     * 移除名单
     * @author LXC
     * @date 2023/2/1 20:24
     */
    boolean removeBlackWhiteList(List<RemoveBlackWhiteListBo> removeBlackWhiteListBoList);

    /**
     * 获取地址
     * @author LXC
     * @date 2023/2/4 9:22
     */
    List<String> getBlackWhiteIpAddr(SystemEnum.blackWhiteListStateEnum stateEnum);
}
